//判断图片是否存在
function isHasImg(pathImg){
    var ImgObj=new Image();
    ImgObj.src= pathImg;
     if(ImgObj.fileSize > 0 || (ImgObj.width > 0 && ImgObj.height > 0))
     {
       return pathImg;
     }else {
      // return 'http://app.jiagangwangluo.com/api//ATTACHMENT/attachment/default.png';
      return pathImg;
     }
} 

/* function isHasImg(url){    
        var xmlHttp ;
        if (window.ActiveXObject)
         {
          xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
         }
         else if (window.XMLHttpRequest)
         {
          xmlHttp = new XMLHttpRequest();
         } 
        xmlHttp.open("Get",url,false);
        xmlHttp.send();
        if(xmlHttp.status==404){
            return 'http://app.jiagangwangluo.com/api//ATTACHMENT/attachment/default.png';
        }else{
        	return url;
        }
    }*/

//判断图片是否存在  轮播图
function isHasImg1(pathImg){
    var ImgObj=new Image();
    ImgObj.src= pathImg;
     if(ImgObj.fileSize > 0 || (ImgObj.width > 0 && ImgObj.height > 0))
     {
       return pathImg;
     }else {
       return pathImg;
      // return 'http://app.jiagangwangluo.com/api//ATTACHMENT/attachment/5498abb8-3ccc-42e9-87f7-bdc9b6602f4e.jpg';
    }
}